package com.kingtone.rongji;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.TextView;

public class HuoDongActivity extends BaseActivity {

	private WebView mWebView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_huodong);
		
		((TextView) findViewById(R.id.title)).setText("鲜活动");
		
		findViewById(R.id.back).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg0) {
				finish();
			}
		});
		
		mWebView = (WebView) findViewById(R.id.webview);       
        WebSettings webSettings = mWebView.getSettings();       
        webSettings.setJavaScriptEnabled(true);
        
        mWebView.setWebViewClient(new WebViewClient(){
        	public boolean shouldOverrideUrlLoading(WebView view, String url){ 
        		view.loadUrl(url);
        		return true;
        	}
        });
        
        mWebView.loadUrl("http://mp.weixin.qq.com/s?__biz=MzA5NjI1MzkyMQ==&mid=204913622&idx=5&sn=e46485e7150ad064d7178e7ff6c28826#rd");
	}
	
}
